package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface SetmealDao {

    void add(Setmeal setmeal);

    void setSetmealAndCheckGroup(Map<String, Integer> map);

    Page<Setmeal> selectByCondition(@Param("queryString") String queryString, @Param("queryString1") String queryString1);

    List<Setmeal> findAll();

    Setmeal findByID(int id);

    Setmeal findByOpen(int id);

    void updateOpen(@Param("id") int id, @Param("open") Boolean open);
}
